﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Q.M.Finance.Domain.Entity
{

    /// <summary>
    /// 开票管理表
    /// </summary>
 
    [SugarTable("billing_management")]
    public class billing_management
    {
        /// <summary>
        /// 开票单号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "开票单号", Length = 50)]
        public string invoiceid { get; set; }

        /// <summary>
        /// 开票主题
        /// </summary>
        [SugarColumn(ColumnDescription = "开票主题", Length = 50)]
        public string? billing_subject { get; set; }

        /// <summary>
        /// 开票类型
        /// </summary>
        [SugarColumn(ColumnDescription = "开票类型")]
        public string? invoicing_typename { get; set; }

        /// <summary>
        /// 开票日期
        /// </summary>
        [SugarColumn(ColumnDescription = "开票日期", Length = 50)]
        public string? date_of_issue { get; set; }

        /// <summary>
        /// 销售订单
        /// </summary>
        [SugarColumn(ColumnDescription = "销售订单", Length = 50)]
        public string? salesid { get; set; }

        /// <summary>
        /// 收款方
        /// </summary>
        [SugarColumn(ColumnDescription = "收款方", Length = 50)]
        public string? payee { get; set; }

        /// <summary>
        /// 优惠后金额
        /// </summary>
        [SugarColumn(ColumnDescription = "优惠后金额")]
        public decimal amount_after_concession { get; set; }

        /// <summary>
        /// 已开票金额
        /// </summary>
        [SugarColumn(ColumnDescription = "已开票金额")]
        public decimal invoiced_amount { get; set; }

        /// <summary>
        /// 发票号
        /// </summary>
        [SugarColumn(ColumnDescription = "发票号", Length = 50)]
        public string? invoice_number { get; set; }

        /// <summary>
        /// 开票金额
        /// </summary>
        [SugarColumn(ColumnDescription = "开票金额")]
        public decimal invoice_amount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 50)]
        public string? comment { get; set; }

    }
}
